package day06_exception_collection.com.itheima.d5_list;

import java.util.ArrayList;

public class ListDemo1 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("java");
        list.add("宁夏枸杞");
        list.add("黑枸杞");
        list.add("人字拖");
        System.out.println("list = " + list);

        list.add(1, "利息");
        System.out.println("list = " + list);

        list.remove(1);
        System.out.println("list = " + list);

        list.set(2, "javaee");
        System.out.println("list = " + list);

        System.out.println("list.get(1) = " + list.get(1));
    }
}
